﻿#ifndef MYPUSHBUTTON_P_H
#define MYPUSHBUTTON_P_H

#include "mypushbutton.h"

QT_BEGIN_NAMESPACE

class MyPushButtonPrivate
{
public:
    MyPushButtonPrivate();
    ~MyPushButtonPrivate();

    /* ImageLayer Property */
    int imageLayerIndex;                                // ImageLayer's Index

    /* Device Property */
    int deviceIndex;                                    // Device's Index

    /* ModBus Property */
    My::ObjectType objectType;                          // Declare an ObjectType variable
    int objectIndex;                                    // ObjectIndex variable
    double data;                                        // Data variable

    /* Display Property */
    bool displayEnable;                                 // Declare a DisplayEnable variable
    bool displayDefault;                                // DisplayDefault variable

    /* Operate Property */
    My::PushButtonOperate pushButtonOperate;            // Declare an PushButtonOperate variable
    int coilOfRegisterIndex;                            // Declare a CoilOfRegisterIndex variable

    /* Display Parameters */
    QString defaultText;                                // Declare a DefaultText variable
    QString textBuffer;                                 // Declare a TextBuffer variable

    /* Mouse Parameters */
    bool LeftmousePressed;                              // The flag of leftmouse be pressed
    QPointF mousePressPoint;                            // The current coordinates of mouse click

};


QT_END_NAMESPACE

#endif // MYPUSHBUTTON_P_H
